Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improved test coverage with findRenderedComponentWithType test #21309

Closed
wants to merge 1 commit into from

Conversation

dustybins
Copy link

Summary

I wanted make my first contribution to an open source project by adding a simple test to improve test coverage.
ReactTestUtils.js was missing coverage on lines 292-294.

Test Plan

Added a new test to verify that the findRenderedComponentWithType method was indeed finding the rendered component with the given type.

yarn test reactutils-test --coverage
Was able to compare test results and verify that the test was passed in addition to improving test coverage.

@sizebot
Copy link

sizebot commented Apr 17, 2021

Comparing: af1a4cb...fc2f00b

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 122.73 kB 122.73 kB = 39.39 kB 39.39 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 129.31 kB 129.31 kB = 41.48 kB 41.48 kB
facebook-www/ReactDOM-prod.classic.js = 412.24 kB 412.24 kB = 76.24 kB 76.24 kB
facebook-www/ReactDOM-prod.modern.js = 400.30 kB 400.30 kB = 74.33 kB 74.33 kB
facebook-www/ReactDOMForked-prod.classic.js = 412.24 kB 412.24 kB = 76.24 kB 76.24 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against fc2f00b

@stale
Copy link

stale bot commented Jan 9, 2022

This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Resolution: Stale Automatically closed due to inactivity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants